package top.zerozoo.learn.grade.dao;

import top.zerozoo.learn.grade.entity.Student;

import java.util.List;

/**
 * 学生信息DAO
 * 用于学生信息的增删改查
 */
public interface StudentDao extends IDao{
    int count();
    int countByMajorID(int id);

    Student findById(int id);
    List<Student> findByMajorID(int id, int start, int rows);

    int insert(Student student);

    int deleteById(int id);

    int update(Student student);
}
